package com.task.entity.po;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@JsonIgnoreProperties(ignoreUnknown = true)
@EqualsAndHashCode()
@Data
@Entity
@Table(name = "t_advice")
public class AdvicePO {

    @Id
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;


    private String createDate;

    private String title;

    private String content;



}
